Fluid component determination using thermal properties

ABSTRACT

Methods for determining phase fractions of a downhole fluid via thermal properties of the fluids are provided. In one embodiment, a method includes measuring a temperature of a fluid flowing through a completion string downhole in a well and heating a resistive element of a thermal detector at a position along the completion string downhole in the well by applying power to the resistive element such that heat from the resistive element is transmitted to the fluid flowing by the position. The method also includes determining, via the thermal detector, a flow velocity of the fluid through the completion string and multiple thermal properties of the fluid, and using the determined flow velocity and the multiple thermal properties to determine phase fractions of the fluid. Additional systems, devices, and methods are also disclosed.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of, and priority to the EP Patent Application No. 16290106.0, filed on Jun. 13, 2016, which application is incorporated herein by this reference in its entirety.

BACKGROUND

Wells are generally drilled into subsurface rocks to access fluids, such as hydrocarbons, stored in subterranean formations. The subterranean fluids can be produced from these wells through known techniques. Various equipment can be used to complete such wells and facilitate production. Further, sensors can be deployed in a well to measure downhole properties of interest, such as temperature and pressure.

Operators may want to know certain characteristics of the well to aid production. For example, operators may want to know flow rates of produced fluids from particular zones in the well. Such flow rate data can be used for numerous purposes, including to identify and diagnose potential flow problems and to determine which flowing zones are producing hydrocarbon fluids. In some instances, temperature data may be collected from the well and used to infer flow information.

SUMMARY

Certain aspects of some embodiments disclosed herein are set forth below. It should be understood that these aspects are presented merely to provide the reader with a brief summary of certain forms the invention might take and that these aspects are not intended to limit the scope of the invention. Indeed, the invention may encompass a variety of aspects that may not be set forth below.

In one embodiment of the present disclosure, a method includes measuring a temperature of a fluid flowing through a completion string downhole in a well. The method further includes heating a resistive element of a thermal detector at a position along the completion string downhole in the well by applying power to the resistive element such that heat from the resistive element is transmitted to the fluid flowing by the position. The method also includes determining, via the thermal detector, a flow velocity of the fluid through the completion string and multiple thermal properties of the fluid. The determined flow velocity and multiple thermal properties can be used to determine phase fractions of the fluid.

In an additional embodiment, an apparatus includes a completion string installed in a well and a thermal detector positioned along the completion string downhole in the well. The apparatus includes an analysis system for determining thermal characteristics of a downhole fluid flowing through the completion string based on measurements acquired with the thermal detector. The analysis system can also determine phase fractions of the downhole fluid using the determined thermal characteristics.

In another embodiment of the present disclosure, a method includes determining thermal properties of a fluid flowing through a conduit. Determining the thermal properties can include applying electrical impulses to a heating element of a thermal detector positioned such that heat from the heating element is advected by the flowing fluid, and assessing the thermal properties of the flowing fluid via the response of the heating element. Additionally, the method includes determining phase fractions of the flowing fluid using the determined thermal properties and a flow rate of the flowing fluid.

Various refinements of the features noted above may exist in relation to various aspects of the present embodiments. Further features may also be incorporated in these various aspects as well. These refinements and additional features may exist individually or in any combination. For instance, various features discussed below in relation to the illustrated embodiments may be incorporated into any of the above-described aspects of the present disclosure alone or in any combination. Again, the brief summary presented above is intended just to familiarize the reader with certain aspects and contexts of some embodiments without limitation to the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other features, aspects, and advantages of certain embodiments will become better understood when the following detailed description is read with reference to the accompanying drawings in which like characters represent like parts throughout the drawings, wherein:

FIG. 1 generally depicts a well, through which formation fluid may flow to the surface, and an analysis system for determining characteristics of the formation fluid in accordance with one embodiment of the present disclosure;

FIG. 2 depicts a portion of the well of FIG. 1 and includes a portion of a completion string having inflow control valves for controlling fluid flow from a formation into the completion string in accordance with one embodiment;

FIG. 3 is a flowchart representing a process for determining phase fractions of a fluid within a conduit, such as the completion string of FIG. 2 , using measured characteristics of the fluid, including thermal characteristics, in accordance with one embodiment;

FIG. 4 depicts a cross-section of a portion of the completion string of FIG. 2 as having a Venturi throat and various sensors for measuring properties of the formation fluid within the completion string in accordance with one embodiment;

FIG. 5 generally depicts a thermal detector of the completion string of FIG. 4 as having a resistive heating element that can be used for determining thermal characteristics of fluid within the completion string in accordance with one embodiment;

FIG. 6 generally depicts the thermal detector of FIG. 5 as a hot-wire anemometer in accordance with one embodiment;

FIGS. 7 and 8 are graphs representing an impulse response and a quasi-impulse response of a thermal sensor in accordance with one embodiment; and

FIG. 9 is a block diagram of components of one example of the analysis system of FIG. 1 that can be used to determine various characteristics of a fluid within the completion string, such as thermal characteristics and phase fractions, in accordance with one embodiment.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

It is to be understood that the present disclosure provides many different embodiments, or examples, for implementing different features of various embodiments. Specific examples of components and arrangements are described below for purposes of explanation and to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting.

When introducing elements of various embodiments, the articles “a,” “an,” “the,” and “said” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements. Moreover, any use of “top,” “bottom,” “above,” “below,” other directional terms, and variations of these terms is made for convenience, but does not mandate any particular orientation of the components.

Embodiments of the present disclosure generally relate to fluid characterization. More particularly, in at least some embodiments, a thermal detector is used to determine thermal characteristics of a fluid, and the thermal characteristics are used to further characterize the fluid. For example, in certain embodiments, the thermal characteristics are used to determine phase fractions of a multiphase fluid (e.g., a fluid emulsion having gas, oil, and water). In at least one embodiment, thermal detectors spaced along a downhole completion string in a well are used to determine thermal characteristics at different locations within the completion string, which are then used to determine phase fractions of the fluid in the completion string at the different locations. The determined phase fractions can also be used to regulate flow into the completion string, such as by using the determined phase fractions in controlling inflow control devices of the completion string.

Turning now to the drawings, a well system 10 is generally depicted in FIG. 1 in accordance with one embodiment. While certain elements of the system 10 are depicted in this figure and generally discussed below, it will be appreciated that the system 10 may include other components in addition to, or in place of, those presently illustrated and discussed. The system 10 includes a wellhead 12 mounted over a well 14 extending through subterranean formations. As will be appreciated, wells can include various completion strings (e.g., casing, liners, and tubing) and other equipment to facilitate production of formation fluids, such as oil and gas. For example, casing strings can be cemented within the well 14 and production tubing can be suspended in the well 14 (e.g., from the wellhead 12) to facilitate production of formation fluids up to the surface.

The well 14 is depicted in FIG. 1 as a horizontal well with a lateral portion extending from a heel 16 to a toe 18 of the well 14. In different embodiments, the well 14 could take another form, such as a multilateral well or a vertical well. Further, the well 14 could be an offshore well or an onshore well in various embodiments.

An analysis system 20 (e.g., a programmed computer system) is also shown in FIG. 1 . The analysis system 20 processes data from sensors in the well 14 to facilitate characterization of the well 14. By way of example, pressure and temperature sensors can be provided in the well 14, and the analysis system 20 can process measurements from these sensors to determine various well characteristics (e.g., a flow profile that includes flow rates from a formation into the well at different depths during production). The analysis system 20 can be located at the wellsite, but the analysis system 20 could be provided remote from the wellsite in some embodiments. The analysis system 20 could also be provided as a distributed system in which some components are provided at a wellsite and others are not. For example, data could be collected from downhole sensors by a portion of the analysis system 20 at the wellsite and then communicated to a remote location for processing by another portion of the analysis system 20.

A portion of a lower completion in the well 14 is generally depicted in FIG. 2 as including a completion string 24 installed in a producing interval of the well 14. Pressurized fluid from a formation 26 flows into the completion string 24, through which the fluid flows up the well. In various embodiments, the completion string 24 is a tubular. While generally depicted as production tubing in FIG. 2 , the completion string 24 could take other forms. For instance, the completion string 24 could be a casing string or a liner. In at least some embodiments, the producing interval of the well 14 extends through a hydrocarbon reservoir and the well 14 produces hydrocarbon fluids (e.g., oil or gas) through the completion string 24. But the techniques described herein are not limited to use with hydrocarbon fluids or within oilfield contexts.

The completion string 24 may include inflow control devices that control the rate at which the pressurized formation fluid flows into the completion string 24. For instance, as generally depicted in FIG. 2 , the completion string 24 includes inflow control valves 28 that can be opened and closed to control flow of formation fluid into the completion string 24. Although just a handful of inflow control valves 28 are depicted in FIG. 2 , it will be appreciated that a well could have any suitable number of such inflow control valves. For example, the well 14 could be a segmented, multi-stage well in which formation fluid is produced from different zones, and flow from the different zones can be individually controlled with inflow control valves 28 installed in the different zones. In some embodiments, the inflow control valves 28 are spaced apart at intervals between forty and one hundred meters or in a narrower range, such as between fifty and seventy meters. The intervals can be regular (e.g., with the inflow control valves 28 spaced at sixty-meter intervals along the completion string 24) or irregular (with the spaces between adjacent valves 28 differing along the string 24).

The desire to produce hydrocarbon fluids efficiently, economically, and in an environmentally-friendly manner has promoted the development of extended reach horizontal and multilateral wells that enable greater reservoir contact. However, the increased wellbore length has led to some production problems. Higher pressure around the heel section resulting from frictional pressure drop of fluid flow in the wellbore may induce non-uniform fluid influx along the length of the wellbore and higher production rates at the heel. This often leads to early break-through of water or gas, which causes a reduction in oil recovery and uneven sweep of the drainage area. Inflow control valves can be used with accurate measurements of phase fractions in the produced fluid (e.g., proportions of oil, water, and gas in a multiphase fluid) to control fluid production rates at different locations along the well.

When a mixture of oil, gas, and water is flowing in the production tubing or other completion string, measuring the various volume fractions (e.g., “water cut” and “gas cut”) downhole can be done in several ways involving different physical principles. In some instances, volume fractions are calculated based on the measurement of the electrical resistivity or the capacitance of the mixture, which are functions of the water content. However, while the resistivity measurement may provide for accurate water cut measurements when water cut is in the range of 50%-100% and the capacitance measurement may provide for accurate water cut determinations when water cut is in the range of 0%-30%, these measurements may lead to inaccurate calculations of water cut at other levels (e.g., due to reliance on modeling and extrapolation, and to the complex dynamics of the mixture where phase inversion might happen). Further, electric measurement typically does not distinguish between gas and oil contents.

In accordance with certain embodiments of the present disclosure, however, the total flow rate of a multiphase fluid (e.g., a fluid mixture having water, oil, and gas) and individual phase fractions of the fluid are measured with temperature sensors. In some instances, and as described in greater detail below, the phase fractions and the total flow rate can be measured at the same location with a thermal sensor at that location. Additional thermal sensors can be used to measure the phase fractions and the total flow rate at other locations in the well (e.g., for cross-correlation purposes).

One example of a process for determining phase fractions of a fluid is generally represented by the flowchart 36 in FIG. 3 . This process includes measuring (block 38) a temperature of a fluid flowing through a conduit (e.g., the completion string 24) and heating (block 40) a resistive element of a thermal detector (e.g., by applying power to a resistive element of thermal detector 56 of FIGS. 4 and 5 ) so that heat from the resistive element is imparted to the flowing fluid. In at least one embodiment, the resistive element of the thermal detector is located at a position along the completion string 24 that is downstream from the position at which the temperature measurement of block 38 occurs.

The flow velocity and multiple thermal properties of the fluid can be determined (block 42) in any suitable manner, such as via the thermal detector. As described below, the thermal properties of the fluid that can be determined with the thermal detector include thermal conductivity and thermal diffusivity. In one embodiment described in greater detail below, the resistive element of the thermal detector is heated at a constant temperature to assess its constant temperature response. The resistive element can then be heated in a pulse mode in which a series of impulses are applied and the time response is recorded to enable the determination of the flow velocity and multiple thermal properties, such as thermal conductivity and thermal diffusivity (or thermal capacity). These or other thermal properties determined with the thermal detector can be used with the determined flow velocity to determine phase fractions of the fluid (block 44). Further, knowledge of the determined phase fractions can be used to control flow of fluid into the completion string 24 (block 46), such as by operating an inflow control valve 28 to control flow of formation fluid into the string 24. In at least some instances, this technique is repeated with multiple thermal detectors installed at different locations along the completion string 24. Resistive elements of the thermal detectors may be heated at the different locations to determine thermal properties, flow velocities, and phase fractions of the fluid at those locations, and multiple inflow control valves 28 can be operated to control flow into the string 24 through the valves 28 (e.g., to regulate production rates in different zones of the well and promote a desired flow profile).

The thermal properties of the fluid in a conduit can be determined in any suitable manner. In one embodiment generally depicted in FIG. 4 , an internal section of a portion of the completion string 24 is shown as having a bore 52 and various sensors for measuring properties of the formation fluid conveyed through the bore. The illustrated sensors include thermal detectors 54 and 56, as well as pressure sensors 58 and 60, but it will be appreciated that the number, type, and configuration of sensors may differ in other instances. One or more of the sensors can be installed across a Venturi throat 64 of the completion string 24. For example, the pressure sensor 58 can be installed at the Venturi throat 64 and the pressure sensor 60 can be installed at a distance away from the Venturi throat, allowing measurement of a differential pressure 62 that can be used to calculate the volumetric flow rate of the fluid. In other instances, however, the volumetric flow rate is also or instead calculated from thermal properties of the fluid measured with one or more of the thermal detectors.

In some instances, the thermal detector 54 is a passive thermal device that measures temperature of the fluid in the completion string, while the thermal detector 56 is an active device for determining additional thermal properties of the fluid. In other instances, the thermal detector 54 may instead be an active device similar or identical to the thermal detector 56. The thermal detector 56 can include a resistive element 66, as generally depicted in FIG. 5 . When in the presence of flow, power may be applied to the resistive element and various properties of the fluid can be determined by the response of the resistive element. In at least one embodiment, as schematically depicted in FIG. 6 , the thermal detector 56 includes a hot-wire anemometer having a resistive heating element 66 in the form of a wire 70 (e.g., a platinum wire with a measurable resistance). A thermally conductive insulator 72 allows heat generated by the powered wire 70 to pass to the fluid within the bore 52 while electrically isolating the wire 70 from the fluid. Heat conveyed from the wire 70 through the sensor body (insulator 72) dissipates into the fluid via convection.

When oil, gas, and water are flowing as emulsions or in single phase, the properties can be considered to be averaged by experimental laws, with the fluids having relative volume fractions (ϕ_(w), ϕ_(o), ϕ_(g)) linked by: ϕ_(w)+ϕ_(o)+ϕ_(g)=1  [1]

Thus, extensive data may be weighted by ϕ_(i) (with subscript i replaced with one of subscripts m, w, o, and g referring to mixture, water, oil, and gas, respectively):

-   -   Fluid density (ρ)         ρ_(m)=ρ_(w)ϕ_(w)+ϕ_(o)ϕ_(o)+ρ_(g)ϕ_(g)  [2]     -   Thermal conductivity (k)

$\begin{matrix} {1 = {{\frac{k_{w}}{k_{m}}\phi_{w}} + {\frac{k_{o}}{k_{m}}\phi_{o}} + {\frac{k_{g}}{k_{m}}\phi_{g}}}} & \lbrack 3\rbrack \end{matrix}$

-   -   Calorific (heat) capacity (C_(p))         ρ_(m) C _(pm)=ρ_(w) C _(pw)ϕ_(w)+ρ_(o) C _(po)ϕ_(o)+ρ_(g) C         _(pg)ϕ_(g)  [4a]     -   Diffusion coefficient (D), where D_(i)=k_(i)/ρ_(i)C_(pi)

$\begin{matrix} {1 = {{\frac{D_{w}}{D_{m}}\phi_{w}} + {\frac{D_{o}}{D_{m}}\phi_{o}} + {\frac{D_{g}}{D_{m}}\phi_{g}}}} & \left\lbrack {4b} \right\rbrack \end{matrix}$ With the volumetric flow-rate being Q_(m)=S_(p)U_(m) (S_(p) being the area of the conduit at the thermal sensor and U_(m) being the flow velocity at the thermal sensor), the mass flow-rate (ρQ) obeys the same breakdown: ρ_(m) Q _(m)=ρ_(w) Q _(w)ϕ_(w)+ρ_(o) Q _(o)ϕ_(o)+ρ_(g) Q _(g)ϕ_(g)  [5]

In at least some embodiments, thermal coefficients are measured in the presence of flow by the same set of thermal sensors without the need to create a dead zone where the fluid is at rest. Flow rate of the fluid can be measured with two thermal sensors: one upstream sensor in “passive” mode (e.g., thermal detector 54) to measure T₀ (the reference temperature, which might depend on the fluid phase) and a heated sensor (e.g., thermal detector 56) at temperature T_(s) to estimate the fluid mass flow-rate.

Flow velocity can be measured by feeding the heat element (e.g., resistive element 66) of the sensor with a power RI² to maintain it at a constant temperature and deducing the velocity by the knowledge of the current and the voltage supplied to the heat element. King's Law (experimental) in steady conditions is given by: RI ²=(α+βU _(m) ^(n))(T ₀ −T _(s))  [6] R and I are under control of the operator and T₀ and T_(s) are measured. The power put in the heat element is then known (W₀=RI²), while α, β, and n are calibration coefficients that depend on the fluid properties and the geometrical factors around the sensor. The temperature of the sensing element of a thermal conductivity detector (TCD), such as thermal detector 56, is known by the independent measurement of V and I (voltage and current feeding the thermal conductivity detector, TCD)

$\begin{matrix} {\left\lbrack {T_{s} - T_{0}} \right\rbrack = {{\frac{1}{\alpha_{T}}\left( {\frac{R}{R_{0}} - 1} \right)} = {\frac{1}{\alpha_{T}}\left( {\frac{V}{{IR}_{0}} - 1} \right)}}} & \lbrack 7\rbrack \end{matrix}$

When the heated temperature sensor is in contact with the fluid at rest (or at very low flow rates) at a temperature T₀, a thermal jump T_(s)−T₀ of the heated temperature sensor will result in heating the fluid with a time history which reflects its thermal characteristics.

When the thermal sensor is heated by a current I passing through the resistive heating element with resistance R_(TCD), the power provided to the resistor is R_(TCD)I² (in watts). The sensor in contact with the fluid will lose its energy, and the temperature T_(s)−T₀ reaches a limit which depends on the calorific capacity of the fluid and the heat flux at the surface of the sensor. (This is valid under the assumption that the insulator, such as insulator 72, around the resistive heating element of the thermal sensor does not pump heat in the system.)

As an example, the sensor surface touching the fluid can be made of a diamond or quartz layer because of their high thermal conductivity (and diffusion coefficient). The temperature inside the sensor can be considered constant in space (but can depend on time), and:

$\begin{matrix} {{\rho_{Dia}C_{Dia}\frac{\partial\left\langle T \right\rangle}{\partial t}℧_{TCD}} = \left. {{R_{TCD}I^{2}} + {k_{fluid}2\;\pi\; r_{dia}^{2}\frac{\partial T}{\partial r}}} \right|_{r = r_{dia}}} & \lbrack 8\rbrack \end{matrix}$ where

_(TCD) is the volume of the sensor, ρ_(Dia)C_(Dia) is the calorific capacity of the sensor material, and

T

is the average temperature.

When the thermodynamic system is in equilibrium, the heat equation does not depend on time and

T

is constant. For the sake of simplification, the TCD is considered as a small hemisphere (e.g., as generally shown in FIG. 6 ) of diameter 2r_(dia) with a surface 2πr_(dia) ² in contact with the fluid at r=r_(dia). At this interface the temperature is continuous, and the thermal flux is constant. Assuming U_(m)=0, the temperature field is assumed to be spherically symmetrical and in steady state. In the spherical coordinate system, the energy equation can be written for an incompressible fluid as follows:

$\begin{matrix} {{\frac{1}{r}\frac{{\partial^{2}r}\; T}{\partial r^{2}}} = 0} & \lbrack 9\rbrack \end{matrix}$ with the boundary condition in the fluid: T(r=r _(dia))=T _(s) ,T(∞)=T ₀  [10a]

The solution of equation [9] is given by:

$\begin{matrix} {{T = {T_{0} + \frac{r_{dia}\left( {T_{s} - T_{0}} \right)}{r}}},} & \left\lbrack {10b} \right\rbrack \end{matrix}$ and the temperature derivative at the interface is:

$\begin{matrix} {\left. \frac{\partial T}{\partial r} \right|_{r_{dia} +} = {- \frac{\left( {T_{s} - T_{0}} \right)}{r_{dia}}}} & \left\lbrack {10c} \right\rbrack \end{matrix}$ Equation [10c] is then substituted in eq. [8] in order to determine k_(fluid):

$\begin{matrix} {{R_{TCD}I^{2}}\; = \;{{k_{fluid}2{{\pi r}_{dia}\left( {T_{s}\; - \; T_{0}} \right)}}\; = {{> \; k_{fluid}}\; = \;\frac{R_{TCD}I^{2}}{2\;{{\pi r}_{dia}\left( {T_{s}\; - \; T_{0}} \right)}}}}} & \lbrack 11\rbrack \end{matrix}$

In equation [11], part of the energy can be lost by conduction in the material which is not totally insulated. In absence of flow, King's Law (equation [6]) depends on the coefficient α that is not known. Using a known fluid of thermal conductivity k_(fref), the power supplied to the TCD is:

$\begin{matrix} {\frac{R_{TCD}I^{2}}{\left( {T_{s} - T_{0}} \right)} = {\frac{\mathcal{L}}{\left( {T_{s} - T_{0}} \right)} + {2\;\pi\; r_{dia}k_{fref}}}} & \lbrack 12\rbrack \end{matrix}$ where

/(T_(s)−T₀) represents the leakages of the thermal energy through the system. It can be estimated once for each sensing device with reference fluids of known thermal conductivities k_(fref)/(T_(s)−T₀).

is a calibration factor and represents an offset in estimation of energy balance.

In no-flow conditions, the sensor excitation can be written:

$\begin{matrix} {\frac{R_{TCD}{I^{2}(t)}}{\left( {T_{s} - T_{0}} \right)} = {\frac{\mathcal{L}}{\left( {T_{s} - T_{0}} \right)} + \frac{E(t)}{\left( {T_{s} - T_{0}} \right)}}} & \lbrack 13\rbrack \end{matrix}$ In terms of distribution this can be written:

$\begin{matrix} {\frac{{R_{TCD}{I^{2}(t)}} - \mathcal{L}}{\left( {T_{s} - T_{0}} \right)} = {\int_{- \infty}^{\infty}{{\delta\left( {t - \tau} \right)}\frac{E(\tau)}{\left( {T_{s} - T_{0}} \right)}d\;\tau}}} & \lbrack 14\rbrack \end{matrix}$ where δ(t−τ) is the Dirac impulse function. The term on the left is measurable, with R_(TCD)I²=VI, and V and I being known separately. The sensor temperature is also known by R_(TCD) (equation [8]) as well

as given by equation [12].

The Dirac impulse excitation can generate an elementary solution of the heat equation:

$\begin{matrix} {T = {\frac{M}{\sqrt{4\;\pi\;{Dt}^{3}}}e^{- \frac{r^{2}}{4\;{Dt}}}}} & \lbrack 15\rbrack \end{matrix}$ With:

$\begin{matrix} {D = \frac{k_{fluid}}{\rho_{fluid}C_{fluid}}} & \lbrack 16\rbrack \end{matrix}$ The boundary conditions can be written for the interface between the sensor and the fluid (at r_(dia)):

$\begin{matrix} {{T\left( {r_{dia},t} \right)} = {\frac{M}{\sqrt{4\;\pi\;{Dt}^{3}}}e^{- \frac{r_{{dia}^{2}}}{4\;{Dt}}}}} & \lbrack 17\rbrack \end{matrix}$

In order to visualize the basic solution, a non-dimensional formulation may be built:

$\begin{matrix} {{r = {r_{dia}\chi}},{t = {\frac{r_{dia}^{2}}{D_{fluid}}\tau}},{\Theta = \frac{{T\left( {r,t} \right)} - T_{0}}{T_{s} - T_{0}}},} & \lbrack 18\rbrack \end{matrix}$ Equation [17] becomes:

$\begin{matrix} {{\Theta\left( {1,\tau} \right)} = {{\frac{r_{dia}{DM}}{\sqrt{4\pi}}\frac{e^{- \frac{1}{4\tau}}}{\tau^{3}}} = {M_{1}\frac{e^{- \frac{1}{4\tau}}}{\tau^{3}}}}} & \lbrack 19\rbrack \end{matrix}$

In equation [19], the amplitude factor M₁ is a measured data point. For τ=Dt/r_(dia) ², the non-denominational time of maximum of Θ in this example is obtained for τ=0.1667 (as shown in FIG. 7 ) and τ_(max) can be measured from D=0.1667 r_(dia) ²/t_(max). An example of an impulse response of a thermal sensor in a no-flow condition is depicted in FIG. 7 . This impulse response is valid for thermal excitations of short time (e.g., Dirac impulse functions) compared to the time of response. The amplitude of the curve depicted in FIG. 7 is arbitrary, but can be determined through measurement of T(t) by the sensor. An example of a non-dimensional response of the thermal sensor in no-flow conditions with a quasi-impulse excitation is depicted in FIG. 8 response of the thermal sensor in a no-flow condition. In the example depicted in FIG. 8 , τ_(max)=0.28. Given that D_(fluid)=τ_(max)r_(dia) ²/t_(max), a known excitation leads to time scaling that allows D_(fluid) to be determined. In other embodiments, other excitation functions (e.g., more complex excitation functions) could be implemented.

For a given excitation the evolution of the temperature inside the sensor is a convolution of the elementary solution and the excitation:

$\begin{matrix} {{T\left( {r_{dia},t} \right)} = {M_{2}{\int_{- \infty}^{\infty}{\frac{e^{- \frac{1}{4\tau}}}{\tau^{3}}{E\left( {t - \tau} \right)}d\tau}}}} & \lbrack 20\rbrack \end{matrix}$ A reasonable ‘real’ impulse function could be expressed as:

$\begin{matrix} {{{E(t)} = {\frac{1}{t_{ex}}\left( {1 - {\cos\left( {2\pi\frac{t}{t_{ex}}} \right)}} \right)}},{t \leq t_{ex}},{{E(t)} = 0},{t \leq {0{and}t} \geq t_{ex}}} & \lbrack 21\rbrack \end{matrix}$ The impulse integral is constant ∫₀ ^(t) ^(ex) E(t)dt=1 and the impulse goes to infinity when t_(ex)→0. The sensor temperature can then be obtained by convolution.

Typical thermal properties of representative sensor housing materials and fluids are provided in the following table:

TABLE Typical thermal properties of representative solids and fluids Thermal Thermal diffusivity, D conductivity, k (in m²/s) (in W/m · K) D/D_(water) k/k_(water) Nickel (Inconel)   23 × 10⁻⁶ 91 140 150 PEEK (insulator)  1.9 × 10⁻⁷ 0.25    1.2    0.4 Diamond (3.0-11) × 1000-3000 <4300>  <3000>  10⁻⁴ Mineral oil 7.38 × 10⁻⁸ 0.16 0.46 0.27 (100° C.) Water at 25° C. 0.16 × 10⁻⁶ 0.6  1  1 Air 200 C.-600  5.6 × 10⁻⁶ 0.03  35    0.05 bar The contrast between mineral oil (similar to crude oil), air (similar to methane), and water are very high either for k and D.

While determination of various thermal properties is described above in no-flow conditions, in at least some embodiments the thermal properties are determined in the presence of fluid flow. Linearity of the various phenomena can be assumed in terms of power put inside the thermal device. In certain embodiments, the constant temperature response of the thermal device is first established so as to provide a function of the fluid velocity but with unknown calibration coefficient. Then a series of impulses can be put in the thermal device (applied to the resistive heating element 66) to assess the thermal properties of the fluid.

If the fluid has very low thermal conductivity, any change of the heater supply will result in higher temperature reach by the sensor and if the thermal capacity (or the thermal diffusivity) is low, the response time of the heater will be shorter (little amount of energy will be radiated in the fluid). In some embodiments, the thermal measurements can be performed with sensors at different positions in the completion string 24, such as upstream of a Venturi throat 64, at the Venturi throat 64, and possibly downstream of the Venturi throat 64—the first giving a reference of velocity measurement, the second providing another velocity measurement (with a different calibration factor), and the third one possibly the thermal properties of mixed fluids. The comparison of upstream and throat measurements give a velocity ratio in the same ratio as the cross-sectional areas of the upstream and throat locations, providing an independent relationship. For high flow rates and compressible flows, a change in forecasted velocities can be an indication of gas.

In the case of a steady flow, a corrected King's Law can be expressed as:

$\begin{matrix} {\frac{{R_{TCD}I_{U}^{2}} - \mathcal{L}}{\left( {T_{s} - T_{0}} \right)} = \left( {{2\pi r_{dia}k_{fluid}} + {\beta U_{m}^{n}}} \right)} & \lbrack 22\rbrack \end{matrix}$ Here,

is known by calibration but k_(fluid) and U_(m) ^(n) are not distinguished one from the other, β depends on the known system geometry and on the unknown parameters k_(fluid) and D_(fluid), and I_(U) ² depends on the amount of advected thermal energy. T_(s) can be maintained constant by a feedback loop on R_(TCD)I_(U) ². The excitation balances several contributions:

$\begin{matrix} {{\frac{{R_{TCD}I_{U}^{2}} - \mathcal{L}}{\left( {T_{s} - T_{0}} \right)} + \frac{R_{TCD}{I_{p}^{2}(t)}}{\left( {T_{s} - T_{0}} \right)}} = {\left( {{2\pi r_{dia}k_{fluid}} + {\beta U_{m}^{n}}} \right) + {F(t)}}} & \lbrack 23\rbrack \end{matrix}$ Here, F(t) is the non-steady response of an excitation

$\frac{R_{TCD}{I_{p}^{2}(t)}}{\left( {T_{s} - T_{0}} \right)}$

It can be assumed that the conditions of temperature field of F(t) are similar to the case of no flow, since any energy above R_(TCD)I_(U) ² is advected by the flow. An additional impulse will be heating the fluid like in no-flow condition (by assumed linearity). Then, amplitude and response time can be used to estimate separately k_(fluid) and D_(fluid) (or ρC_(fluid)).

The steady part is:

$\begin{matrix} {\frac{{R_{TCD}I_{U}^{2}} - \mathcal{L}}{\left( {T_{s} - T_{0}} \right)} = \left( {{2\pi r_{dia}k_{fluid}} + {\beta U_{m}^{n}}} \right)} & \lbrack 24\rbrack \end{matrix}$

It may be assumed to be decoupled from the second one:

$\begin{matrix} {\frac{R_{TCD}{I_{p}^{2}(t)}}{\left( {T_{s} - T_{0}} \right)} = {E(t)}} & \lbrack 25\rbrack \end{matrix}$ with a temperature field following same equations [20].

$\frac{{R_{TCD}I_{U}^{2}} - \mathcal{L}}{\left( {T_{s} - T_{0}} \right)},$

By using first the constant temperature control and then a series of pulses as by equation [20], and with the result of convolution similar to equations [21] and [22], we can write:

$\begin{matrix} {{\frac{R_{TCD}{I_{p}^{2}(t)}}{\left( {T_{s} - T_{0}} \right)} = {\frac{\left\langle {R_{TCD}I_{p}^{2}} \right\rangle}{\left( {T_{s} - T_{0}} \right)}{\int_{- \infty}^{\infty}{{\delta\left( {t - \tau} \right)}{E(\tau)}d\tau}}}}{{T(t)} = {\int_{- \infty}^{\infty}{{E\left( {t - \zeta} \right)}\frac{M}{\sqrt{4\pi{Dt}^{3}}}e^{- \frac{r^{2}}{4{Dt}}}d\zeta}}}} & \lbrack 26\rbrack \end{matrix}$ with

R_(TCD)I_(p) ²

being the average of R_(TCD)I_(p) ²(t). The solution of this is a convolution exhibiting a maximum (as in FIG. 8 ) since T(t) and E(t) can be measured, M can be inferred, and the time for maximum can be inversed to get the diffusion coefficient D.

To close the loop of unknowns, equations [7] and [26] can be used to calculate the fluid conductivity k_(fluid):

$\begin{matrix} {{\rho_{Dia}C_{Dia}\frac{\partial T}{\partial t}\frac{4\pi r_{dia}^{3}}{3}} = {{\left\langle {R_{TCD}I_{p}^{2}} \right\rangle{\int_{- \infty}^{\infty}{{\delta\left( {t - \tau} \right)}{E(\tau)}d\tau}}} - {k_{fluid}\frac{M\pi^{1/2}r_{dia}^{3}}{2D^{1/2}}{\int_{- \infty}^{\infty}{{E\left( {t - \zeta} \right)}\frac{e^{- \frac{r_{dia}^{2}}{4{Dt}}}}{t^{5/2}}d\zeta}}}}} & \lbrack 27\rbrack \end{matrix}$ since each of the time-dependent quantities is measurable. This enables each of the terms of equation [24] to be defined, with the parameters βU_(m) ^(n) known for various reference fluids.

In at least one embodiment, temperature measurement can be calculated according to equation [7], in which V, I, and R are measured values and α_(T) and R₀ are input parameters. Equation [12] can be used for no-flow calibration in reference fluids with k_(fref) for leakages

. After this calibration, three unknown parameters are left in equation [22] (i.e., k_(fluid), β, and U_(m)), which can be solved (along with D_(fluid) or ρC_(fluid)) as discussed above. Any three of phase equations [1]-[5] could then then be used to calculate the phase fractions of oil, water, and gas in the fluid conveyed through completion string 24. For example, with k_(m) and D_(m) measured as described above, and values for the thermal conductivities and diffusion coefficients of the individual phases provided as input parameters (e.g., from the entries for mineral oil, water, and air in the table above), the phase equations [1], [3], and [4b] can be solved to determine the phase fractions (ϕ_(w), ϕ_(o), ϕ_(g)).

As shown in FIG. 4 and generally described above, the fluid flow line (e.g., completion string 24) can be equipped with a Venturi throat 64 and two pressure sensors 58 and 60 for getting information on the fluid flow-rate Q_(t):

$\begin{matrix} {Q_{t} = {C_{D}\frac{\pi d^{2}}{4}\frac{1}{\sqrt{1 - \beta^{4}}}\sqrt{\frac{2\Delta P}{\rho_{m}}}}} & \lbrack 28\rbrack \end{matrix}$

In equation [28], C_(D) and ρ_(m) are fluid dependent:

$\begin{matrix} {{C_{D} = \frac{2.3794}{{Re}_{m}^{0.412}}},{{{for}{Re}_{m}} \in \left\lbrack {10^{2},2.1^{6}} \right\rbrack}} & \lbrack 29\rbrack \end{matrix}$ with:

$\begin{matrix} {{Re}_{m} = {\frac{\rho_{m}U_{m}D}{\mu_{m}} = {\frac{4\rho_{m}Q}{\pi\mu_{m}D}.}}} & \lbrack 30\rbrack \end{matrix}$

Each coefficient indexed by m is the mixture averaged value, ρ_(m) is given by equation [2], and (o in w): μ_(m)=μ_(o)(1−ϕ_(w))^(−2.5),(w in o): μ_(m)=_(w)ϕ_(w) ^(2.5)  [31] where μ_(m) is given by equation for two cases—oil in a water major phase, or water in an oil major phase. With each phase being determinable as described above, the water cut can be known and the pressure interpretation can be completed.

Formally, King's Law is valid at the Venturi throat and upstream or downstream of the Venturi restriction. A Venturi diffuser (the divergent part of the Venturi tube) plays the role of a turbulent mixer by flow separation in the pressure recovery region, whereas the convergent part of the Venturi is a stabilizer that keeps the streamlines parallel. Therefore, a velocity measurement between the upstream part of the Venturi and the Venturi throat is supposed to be consistent, whereas a measurement between the Venturi throat and downstream of the Venturi can be of different kind. This is an additional indicator of the fluid phase distribution in a measurement conduit. The described procedure to evaluate the flow velocity and the phase distribution can be performed as described above, while providing additional information on U_(m) and then ρ_(m) as a quality check parameter. A possible inconsistency between the Venturi throat and the downstream part can show the effect of mixing, with individual phases losing their signature.

The analysis system 20 of the system 10 can be used to implement the functionality described above. For example, in at least some embodiments the analysis system 20 is operable to determine thermal characteristics of a fluid in a conduit with a thermal detector and to determine phase fractions of the fluid using the determined thermal characteristics. The analysis system 20 may also operate control flow of fluid into the conduit in some instances, such as by operating inflow control valves 28 of a production tubing or other completion string 24.

The analysis system 20 can be provided in any suitable form, such as a processor-based system. An example of such a processor-based system 80 is generally provided in FIG. 9 . In this depicted embodiment, the system 80 includes at least one processor 82 connected by a bus 84 to volatile memory 86 (e.g., random-access memory) and non-volatile memory 88 (e.g., flash memory and a read-only memory (ROM)). Coded application instructions 90 (e.g., instructions for calculating thermal properties, flow rates, and phase fractions, as described above) and data 92 (e.g., thermal property parameters of materials and fluids of interest, as in the table above) are stored in the non-volatile memory 88. The instructions 90 and the data 92 may be also be loaded into the volatile memory 86 (or in a local memory 94 of the processor) as desired, such as to reduce latency and increase operating efficiency of the system 80. The coded application instructions 90 can be provided as software that may be executed by the processor 82 to enable various functionalities described above. In at least some embodiments, the application instructions 90 are encoded in a non-transitory, computer-readable storage medium, such as the volatile memory 86, the non-volatile memory 88, the local memory 94, or a portable storage device (e.g., a flash drive or a compact disc).

An interface 96 of the system 80 enables communication between the processor 82 and various input devices 98 and output devices 100. The interface 96 can include any suitable device that enables such communication, such as a modem or a serial port. In some embodiments, the input devices 98 include one or more sensing components of the system 10 (e.g., sensors 54, 56, 58, and 60) and the output devices 100 include displays, printers, and storage devices that allow output of data received or generated by the system 80.

Various methods and systems related to fluid analysis via thermal properties are described above. From this description, it will be appreciated that one method in accordance with the present techniques can include determining thermal properties of a fluid flowing through a conduit and determining phase fractions of the flowing fluid using the determined thermal properties and a flow rate of the flowing fluid. The conduit could be located downhole within a well or at the surface. Determining the thermal properties can include applying electrical impulses to a heating element of a thermal detector positioned such that heat from the heating element is advected by the flowing fluid, and assessing the thermal properties of the flowing fluid via the response of the heating element. In some instances, the method can also include determining the flow rate of the flowing fluid via the thermal detector. Further, determining the thermal properties of the fluid can include correlating amplitude responses of the thermal detector to the electrical impulses with thermal diffusivity and thermal conductivity of the fluid. Determining the thermal properties of the fluid may also include determining the thermal diffusivity of the fluid through identification of a maximum amplitude response at a fixed, non-dimensional time.

The foregoing outlines features of several embodiments so that those skilled in the art may better understand aspects of the present disclosure. Those skilled in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same purposes or achieving the same advantages of the embodiments introduced herein. Those skilled in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions and alterations herein without departing from the spirit and scope of the present disclosure. 

The invention claimed is:
 1. A method comprising: measuring a temperature of a fluid flowing through a completion string downhole in a well via a first thermal detector, the first thermal detector comprising a passive temperature sensor and configured to measure a reference temperature; heating a resistive element of a thermal detector at a position along the completion string downhole in the well by applying power to the resistive element, the thermal detector located downstream of the first thermal detector, wherein heat from the resistive element is transmitted to the fluid flowing by the position; determining, via the thermal detector, a flow velocity of the fluid through the completion string and multiple thermal properties of the fluid, the multiple thermal properties of the fluid comprising thermal conductivity and thermal diffusivity of the fluid; using the determined flow velocity and the multiple thermal properties to determine phase fractions of the fluid; and controlling at least one inflow control valve of the completion string based on the determined phase fractions of the fluid.
 2. The method of claim 1, wherein determining, via the thermal detector, the flow velocity of the fluid and the multiple thermal properties of the fluid includes determining the thermal diffusivity of the fluid, then determining the thermal conductivity of the fluid based on the determined thermal diffusivity, and then determining the flow velocity based on the determined thermal diffusivity and the determined thermal conductivity.
 3. The method of claim 1, wherein using the determined flow velocity and the multiple thermal properties to determine the phase fractions of the fluid includes using the determined flow velocity and the multiple thermal properties to determine individual phase fractions for oil, water, and gas in the fluid.
 4. The method of claim 1, comprising: heating resistive elements of additional thermal detectors at other positions along the completion string downhole in the well by applying power to the resistive elements, wherein heat from the resistive elements is transmitted to the fluid flowing by the other positions; determining, via the additional thermal detectors, flow velocities of the fluid through the completion string and multiple thermal properties of the fluid at the other positions; and using the determined flow velocities and the multiple thermal properties of the fluid at the other positions to determine phase fractions of the fluid at the other positions.
 5. The method of claim 4, comprising controlling inflow control valves of the completion string based on the determined phase fractions of the fluid to regulate production rates in different zones of the well.
 6. The method of claim 1, comprising determining a constant temperature response of the thermal detector.
 7. The method of claim 6, comprising establishing a function of the flow velocity of the fluid through the completion string based on the determined constant temperature response of the thermal detector.
 8. The method of claim 6, wherein determining the multiple thermal properties of the fluid includes applying impulses to the resistive element of the thermal detector to determine the multiple thermal properties of the fluid. 